from Thread_demo.StaticTestA import StaticTestA

testa_obj = None

class StaticTestB():

    def __init__(self):
        self.testb_obj()

    @staticmethod
    def testb_obj():
        global testa_obj
        if not testa_obj:
            testa_obj = StaticTestA.test_obj()
        return testa_obj

    def start_record(self, index, chanle):
        return testa_obj.start_queue(index, chanle)

    def stop_record(self, index, chanle):
        return testa_obj.stop_queue(index, chanle)
